package nc.bs.pub.action;

import java.util.Hashtable;
import nc.bs.pub.compiler.AbstractCompiler2;
import nc.vo.pub.BusinessException;
import nc.vo.pub.compiler.PfParameterVO;
import nc.vo.uap.pf.PFBusinessException;

public class N_9566_DELYJCDLINE extends AbstractCompiler2
{
  private Hashtable m_methodReturnHas = new Hashtable();
  private Hashtable m_keyHas = null;

  public Object runComClass(PfParameterVO vo)
    throws BusinessException
  {
    try
    {
      this.m_tmpVo = vo;
      setParameter("PFVO", vo);
      Object retObj = runClass("nc.bs.pr.pr202010.YjcdDelLineData", "delLineYjcdData", "&PFVO:nc.vo.pub.compiler.PfParameterVO", vo, this.m_keyHas, this.m_methodReturnHas);
      return retObj;
    } catch (Exception ex) {
      if (ex instanceof BusinessException) {
        throw ((BusinessException)ex);
      }
      throw new PFBusinessException(ex.getMessage(), ex);
    }
  }

  public String getCodeRemark()
  {
    return "\tsetParameter(\"PFVO\", vo);\n\tObject retObj = runClass(\"nc.bs.pr.pr202010.YjcdDelLineData\", \"delLineYjcdData\", \"&PFVO:nc.vo.pub.compiler.PfParameterVO\",vo,m_keyHas,m_methodReturnHas);\n\treturn retObj;\n";
  }

  private void setParameter(String key, Object val)
  {
    if (this.m_keyHas == null) {
      this.m_keyHas = new Hashtable();
    }
    if (val != null)
      this.m_keyHas.put(key, val);
  }
}